<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  font-size: 13px;
  padding: 1em;
}

h1 {
  font-size: 26px;
  margin-bottom: 1em;
}

h2 {
  font-size: 24px;
  margin-bottom: 1em;
}

h3 {
  font-size: 20px;
  margin-bottom: 1em;
  margin-top: 1em;
}

pre, code {
  line-height: 1.5;
  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
  margin-top: 0.5em;
}

h1, h2, h3, p {
  font-family: Arial, sans serif;
}

h1, h2, h3 {
  border-bottom: solid #CCC 1px;
}

.toc_element {
  margin-top: 0.5em;
}

.firstline {
  margin-left: 2 em;
}

.method  {
  margin-top: 1em;
  border: solid 1px #CCC;
  padding: 1em;
  background: #EEE;
}

.details {
  font-weight: bold;
  font-size: 14px;
}

</style>

<h1><a href="datacatalog_v1.html">Google Cloud Data Catalog API</a> . <a href="datacatalog_v1.projects.html">projects</a> . <a href="datacatalog_v1.projects.locations.html">locations</a> . <a href="datacatalog_v1.projects.locations.tagTemplates.html">tagTemplates</a> . <a href="datacatalog_v1.projects.locations.tagTemplates.fields.html">fields</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
  <code><a href="datacatalog_v1.projects.locations.tagTemplates.fields.enumValues.html">enumValues()</a></code>
</p>
<p class="firstline">Returns the enumValues Resource.</p>

<p class="toc_element">
  <code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
  <code><a href="#create">create(parent, body=None, tagTemplateFieldId=None, x__xgafv=None)</a></code></p>
<p class="firstline">Creates a field in a tag template. You must enable the Data Catalog API in the project identified by the `parent` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).</p>
<p class="toc_element">
  <code><a href="#delete">delete(name, force=None, x__xgafv=None)</a></code></p>
<p class="firstline">Deletes a field in a tag template and all uses of this field from the tags based on this template. You must enable the Data Catalog API in the project identified by the `name` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).</p>
<p class="toc_element">
  <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
<p class="firstline">Updates a field in a tag template. You can't update the field type with this method. You must enable the Data Catalog API in the project identified by the `name` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).</p>
<p class="toc_element">
  <code><a href="#rename">rename(name, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Renames a field in a tag template. You must enable the Data Catalog API in the project identified by the `name` parameter. For more information, see [Data Catalog resource project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project).</p>
<h3>Method Details</h3>
<div class="method">
    <code class="details" id="close">close()</code>
  <pre>Close httplib2 connections.</pre>
</div>

<div class="method">
    <code class="details" id="create">create(parent, body=None, tagTemplateFieldId=None, x__xgafv=None)</code>
  <pre>Creates a field in a tag template. You must enable the Data Catalog API in the project identified by the `parent` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).

Args:
  parent: string, Required. The name of the project and the template location [region](https://cloud.google.com/data-catalog/docs/concepts/regions). (required)
  body: object, The request body.
    The object takes the form of:

{ # The template for an individual field within a tag template.
  &quot;description&quot;: &quot;A String&quot;, # The description for this field. Defaults to an empty string.
  &quot;displayName&quot;: &quot;A String&quot;, # The display name for this field. Defaults to an empty string. The name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can&#x27;t start or end with spaces. The maximum length is 200 characters.
  &quot;isRequired&quot;: True or False, # If true, this field is required. Defaults to false.
  &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the tag template field in URL format. Example: `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD}` Note: The tag template field itself might not be stored in the location specified in its name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 64 characters.
  &quot;order&quot;: 42, # The order of this field with respect to other fields in this tag template. For example, a higher value can indicate a more important field. The value can be negative. Multiple fields can have the same order and field orders within a tag don&#x27;t have to be sequential.
  &quot;type&quot;: { # Required. The type of value this tag field can contain.
    &quot;enumType&quot;: { # An enum type.
      &quot;allowedValues&quot;: [ # The set of allowed values for this enum. This set must not be empty and can include up to 100 allowed values. The display names of the values in this set must not be empty and must be case-insensitively unique within this set. The order of items in this set is preserved. This field can be used to create, remove, and reorder enum values. To rename enum values, use the `RenameTagTemplateFieldEnumValue` method.
        {
          &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the enum value. Must not be an empty string. The name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can&#x27;t start or end with spaces. The maximum length is 200 characters.
        },
      ],
    },
    &quot;primitiveType&quot;: &quot;A String&quot;, # Primitive types, such as string, boolean, etc.
  },
}

  tagTemplateFieldId: string, Required. The ID of the tag template field to create. Note: Adding a required field to an existing template is *not* allowed. Field IDs can contain letters (both uppercase and lowercase), numbers (0-9), underscores (_) and dashes (-). Field IDs must be at least 1 character long and at most 128 characters long. Field IDs must also be unique within their template.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # The template for an individual field within a tag template.
  &quot;description&quot;: &quot;A String&quot;, # The description for this field. Defaults to an empty string.
  &quot;displayName&quot;: &quot;A String&quot;, # The display name for this field. Defaults to an empty string. The name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can&#x27;t start or end with spaces. The maximum length is 200 characters.
  &quot;isRequired&quot;: True or False, # If true, this field is required. Defaults to false.
  &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the tag template field in URL format. Example: `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD}` Note: The tag template field itself might not be stored in the location specified in its name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 64 characters.
  &quot;order&quot;: 42, # The order of this field with respect to other fields in this tag template. For example, a higher value can indicate a more important field. The value can be negative. Multiple fields can have the same order and field orders within a tag don&#x27;t have to be sequential.
  &quot;type&quot;: { # Required. The type of value this tag field can contain.
    &quot;enumType&quot;: { # An enum type.
      &quot;allowedValues&quot;: [ # The set of allowed values for this enum. This set must not be empty and can include up to 100 allowed values. The display names of the values in this set must not be empty and must be case-insensitively unique within this set. The order of items in this set is preserved. This field can be used to create, remove, and reorder enum values. To rename enum values, use the `RenameTagTemplateFieldEnumValue` method.
        {
          &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the enum value. Must not be an empty string. The name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can&#x27;t start or end with spaces. The maximum length is 200 characters.
        },
      ],
    },
    &quot;primitiveType&quot;: &quot;A String&quot;, # Primitive types, such as string, boolean, etc.
  },
}</pre>
</div>

<div class="method">
    <code class="details" id="delete">delete(name, force=None, x__xgafv=None)</code>
  <pre>Deletes a field in a tag template and all uses of this field from the tags based on this template. You must enable the Data Catalog API in the project identified by the `name` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).

Args:
  name: string, Required. The name of the tag template field to delete. (required)
  force: boolean, Required. If true, deletes this field from any tags that use it. Currently, `true` is the only supported value.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
}</pre>
</div>

<div class="method">
    <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
  <pre>Updates a field in a tag template. You can&#x27;t update the field type with this method. You must enable the Data Catalog API in the project identified by the `name` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).

Args:
  name: string, Required. The name of the tag template field. (required)
  body: object, The request body.
    The object takes the form of:

{ # The template for an individual field within a tag template.
  &quot;description&quot;: &quot;A String&quot;, # The description for this field. Defaults to an empty string.
  &quot;displayName&quot;: &quot;A String&quot;, # The display name for this field. Defaults to an empty string. The name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can&#x27;t start or end with spaces. The maximum length is 200 characters.
  &quot;isRequired&quot;: True or False, # If true, this field is required. Defaults to false.
  &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the tag template field in URL format. Example: `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD}` Note: The tag template field itself might not be stored in the location specified in its name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 64 characters.
  &quot;order&quot;: 42, # The order of this field with respect to other fields in this tag template. For example, a higher value can indicate a more important field. The value can be negative. Multiple fields can have the same order and field orders within a tag don&#x27;t have to be sequential.
  &quot;type&quot;: { # Required. The type of value this tag field can contain.
    &quot;enumType&quot;: { # An enum type.
      &quot;allowedValues&quot;: [ # The set of allowed values for this enum. This set must not be empty and can include up to 100 allowed values. The display names of the values in this set must not be empty and must be case-insensitively unique within this set. The order of items in this set is preserved. This field can be used to create, remove, and reorder enum values. To rename enum values, use the `RenameTagTemplateFieldEnumValue` method.
        {
          &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the enum value. Must not be an empty string. The name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can&#x27;t start or end with spaces. The maximum length is 200 characters.
        },
      ],
    },
    &quot;primitiveType&quot;: &quot;A String&quot;, # Primitive types, such as string, boolean, etc.
  },
}

  updateMask: string, Optional. Names of fields whose values to overwrite on an individual field of a tag template. The following fields are modifiable: * `display_name` * `type.enum_type` * `is_required` If this parameter is absent or empty, all modifiable fields are overwritten. If such fields are non-required and omitted in the request body, their values are emptied with one exception: when updating an enum type, the provided values are merged with the existing values. Therefore, enum values can only be added, existing enum values cannot be deleted or renamed. Additionally, updating a template field from optional to required is *not* allowed.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # The template for an individual field within a tag template.
  &quot;description&quot;: &quot;A String&quot;, # The description for this field. Defaults to an empty string.
  &quot;displayName&quot;: &quot;A String&quot;, # The display name for this field. Defaults to an empty string. The name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can&#x27;t start or end with spaces. The maximum length is 200 characters.
  &quot;isRequired&quot;: True or False, # If true, this field is required. Defaults to false.
  &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the tag template field in URL format. Example: `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD}` Note: The tag template field itself might not be stored in the location specified in its name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 64 characters.
  &quot;order&quot;: 42, # The order of this field with respect to other fields in this tag template. For example, a higher value can indicate a more important field. The value can be negative. Multiple fields can have the same order and field orders within a tag don&#x27;t have to be sequential.
  &quot;type&quot;: { # Required. The type of value this tag field can contain.
    &quot;enumType&quot;: { # An enum type.
      &quot;allowedValues&quot;: [ # The set of allowed values for this enum. This set must not be empty and can include up to 100 allowed values. The display names of the values in this set must not be empty and must be case-insensitively unique within this set. The order of items in this set is preserved. This field can be used to create, remove, and reorder enum values. To rename enum values, use the `RenameTagTemplateFieldEnumValue` method.
        {
          &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the enum value. Must not be an empty string. The name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can&#x27;t start or end with spaces. The maximum length is 200 characters.
        },
      ],
    },
    &quot;primitiveType&quot;: &quot;A String&quot;, # Primitive types, such as string, boolean, etc.
  },
}</pre>
</div>

<div class="method">
    <code class="details" id="rename">rename(name, body=None, x__xgafv=None)</code>
  <pre>Renames a field in a tag template. You must enable the Data Catalog API in the project identified by the `name` parameter. For more information, see [Data Catalog resource project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project).

Args:
  name: string, Required. The name of the tag template field. (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for RenameTagTemplateField.
  &quot;newTagTemplateFieldId&quot;: &quot;A String&quot;, # Required. The new ID of this tag template field. For example, `my_new_field`.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # The template for an individual field within a tag template.
  &quot;description&quot;: &quot;A String&quot;, # The description for this field. Defaults to an empty string.
  &quot;displayName&quot;: &quot;A String&quot;, # The display name for this field. Defaults to an empty string. The name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can&#x27;t start or end with spaces. The maximum length is 200 characters.
  &quot;isRequired&quot;: True or False, # If true, this field is required. Defaults to false.
  &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the tag template field in URL format. Example: `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD}` Note: The tag template field itself might not be stored in the location specified in its name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 64 characters.
  &quot;order&quot;: 42, # The order of this field with respect to other fields in this tag template. For example, a higher value can indicate a more important field. The value can be negative. Multiple fields can have the same order and field orders within a tag don&#x27;t have to be sequential.
  &quot;type&quot;: { # Required. The type of value this tag field can contain.
    &quot;enumType&quot;: { # An enum type.
      &quot;allowedValues&quot;: [ # The set of allowed values for this enum. This set must not be empty and can include up to 100 allowed values. The display names of the values in this set must not be empty and must be case-insensitively unique within this set. The order of items in this set is preserved. This field can be used to create, remove, and reorder enum values. To rename enum values, use the `RenameTagTemplateFieldEnumValue` method.
        {
          &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the enum value. Must not be an empty string. The name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can&#x27;t start or end with spaces. The maximum length is 200 characters.
        },
      ],
    },
    &quot;primitiveType&quot;: &quot;A String&quot;, # Primitive types, such as string, boolean, etc.
  },
}</pre>
</div>

</body></html>